#pragma once
#include "../KeySearchWidget.h"

class TestSearchEngine : public IKeySearchEngine {
 public:
  void search(int serialNum, const QString& key) override;
  void setResultCallback(std::function<void(int, QJsonArray)> fun) override;

 private:
  void doSearch(int seriaNum);

 private:
  std::function<void(int, QJsonArray)> m_fun = nullptr;
  std::string* s_result = nullptr;
};
